package com.hydl.power.mapper;

import com.hydl.power.pojo.InspectionOrder;
import com.hydl.power.pojo.InspectionOrderExample;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface InspectionOrderMapper {
    int insert(InspectionOrder record);

    int insertSelective(InspectionOrder record);

    List<InspectionOrder> selectByExample(InspectionOrderExample example);

    List<InspectionOrder> queryPatrolWorkOrder();

    int updatePatrolWorkOrder(String projectId, String projectName, String poweroomId, String powerroomName, String startTime, Date endTime,Date createTime,String maintainerId,
    String maintainerName,String result,String suggest,String inspectionReport,Integer status,Integer id);

    int updateInspectionOrderByOrderId(String orderId, String result,Integer status,Date endTime);

    InspectionOrder getInspectionResultByOrderId(Integer id);

    int addInspectionResult(InspectionOrder inspectionOrder);

    int queryIsFlag(String inspectionPlanId);

    int updateInspectionResult (String result,String IPQCID,String IPQCNAME,String inspectionPlanId);

   int updateUserSubmitImage (String inspectionReport,String inspectionPlanId);

    List<InspectionOrder> queryStatus(String projectId);

    List<InspectionOrder> queryoOffTheStocks(@Param("pageNumKey") Integer pageNum, @Param("pageSizeKey") Integer pageSize, String createTime,String dataType,String projectId);

    List<InspectionOrder> queryInspectionOrder(@Param("pageNumKey") Integer pageNum, @Param("pageSizeKey") Integer pageSize,String startTime,String endTime,String projectId);

    int queryInspectionOrderCount(String projectId,String startTime,String endTime);
}
